var Mock = require('mockjs')

exports.response = function(req, res) {
  return Mock.mock({
    "msg": "OK",
    "code": 0,
    "data": {
      "date":"2017-08-23T22:44:30.652Z",
      "fundId": "509",
      "stocklist": [
        {
          "value": "601398.SH"
        }, {
          "value": "600580.SH"
        }, {
          "value": "000910.SZ"
        }
      ],
      "trend": {
        "trendMessage": [
          "以六个基准价格来衡量隐性成本", "六项隐性成本的均值及最大最小值"
        ],
        "trendChart": {
          "xaixs": {
            "data|197": [
              "@date(hh:mm:ss)"
            ]
          },
          "data": [
            {
              "data|197": [
                "@float(0,10,0,3)"
              ],
              "name": "TWAP"
            }, {
              "data|197": [
                "@float(0,10,0,3)"
              ],
              "name": "VWAP"
            }, {
              "data|197": [
                "@float(0,10,0,3)"
              ],
              "name": "vwapUser"
            }
          ]
        }
      },
      "fundlist": [
        {
          "value": "509"
        }, {
          "value": "559"
        }, {
          "value": "547"
        }, {
          "value": "526"
        }, {
          "value": "514"
        }, {
          "value": "537"
        }, {
          "value": "506"
        }, {
          "value": "517"
        }, {
          "value": "556"
        }
      ],
      "imcost": {
        "imCostChart": {
          "xaixs": [
            "昨日收盘价",
            "今日开盘价",
            "AP",
            "Daily HLOC",
            "Daily VWAP",
            "今日收盘价"
          ],
          "data": [
            {
              "data|6": [
              "@float(-1,1,0,4)"
              ],
              "name": "avg"
            }, {
              "data|6": [
              "@float(-1,1,0,4)"
              ],
              "name": "max"
            }, {
              "data|6": [
              "@float(-1,1,0,4)"
              ],
              "name": "min"
            }
          ]
        },
        "imCostTable": {
          "keyRow": "benchmark",
          "tableData": [
            {
              "total": 1061800,
              "price": 5.69,
              "buy": 1061800,
              "sell": 0,
              "benchmark": "昨日收盘价"
            }, {
              "total": 1161800,
              "price": 5.68,
              "buy": 1161800,
              "sell": 0,
              "benchmark": "今日开盘价"
            }, {
              "total": -34697.045,
              "price": 5.7896,
              "buy": -34697.045,
              "sell": 0,
              "benchmark": "AP"
            }, {
              "total": 311800,
              "price": 5.765,
              "buy": 311800,
              "sell": 0,
              "benchmark": "Daily HLOC"
            }, {
              "total": 61800,
              "price": 5.79,
              "buy": 61800,
              "sell": 0,
              "benchmark": "Daily VWAP"
            }, {
              "total": -538200,
              "price": 5.85,
              "buy": -538200,
              "sell": 0,
              "benchmark": "今日收盘价"
            }
          ],
          "tableTitle": [
            {
              "column": "benchmark",
              "name": "基准"
            }, {
              "column": "price",
              "name": "价格"
            }, {
              "column": "total",
              "name": "总成本"
            }, {
              "column": "buy",
              "name": "买入"
            }, {
              "column": "sell",
              "name": "卖出"
            }
          ]
        },
        "imCostMessage": ["以六个基准价格来衡量隐性成本", "六项隐性成本的均值及最大最小值"]
      },
      "stockCode": "601398.SH",
      "ebex": {
        "ebexHist": {
          "xaxis|11": [
            "@float(0,1,0,1)"
          ],
          "data|11": [
          "@float(0,1000,0,0)"
          ]
        },
        "ebexmessage": [
          "以六个基准价格来衡量隐性成本", "六项隐性成本的均值及最大最小值"
        ],
        "ebexScatter": {
          "data|20": [
            [
              "@float(0,0,0,4)", "@float(0,0,0,4)"
            ],
            [
              "@float(0,0,0,4)", "@float(0,0,0,4)"
            ],
            [
              "@float(0,0,0,4)", "@float(0,0,0,4)"
            ],
            [
              "@float(0,0,0,4)", "@float(0,0,0,4)"
            ],
            [
              "@float(0,0,0,4)", "@float(0,0,0,4)"
            ],
            [
              "@float(0,1,0,0)", "@float(0,1,0,0)"
            ]
          ],
          "axis": ["NABEX", "NBBEX"]
        }
      }
    }
  })
}
